<%= simple_form_for [:backend, model] do |f| %>
  <div class="row">
    <div class="col-md-6">
      <div class="card">
        <div class="card-header">
          <%= t 'b.general' %>
        </div>

        <div class="card-block">
          <%= f.input :source_uri %>
          <%= f.input :destination_uri %>
          <%= f.input :disabled, as: :boolean %>
        </div>
      </div>
    </div>

    <div class="col-md-6">
      <div class="card">
        <div class="card-header">
          <%= t 'b.advanced' %>
        </div>
        <div class="card-block">
          <%= f.input :status_code, collection: model.status_code_collection %>

          <div class="alert alert-info">
            <%= icon :info, t('b.msg.help_texts.status_code') %>
            <% wiki_link = 'https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection' %>
            <%= link_to wiki_link, wiki_link, target: '_blank' %>
          </div>
        </div>
      </div>
    </div>
  </div>

  <%= render 'backend/form_actions', cancel_url: backend_redirects_path %>
<% end %>
